<div ${hasErrors(bean: customerInstance, field: 'emailAddress', 'error')}>
<label for="emailAddress">
    <g:message code="customer.emailAddress.label" default="Email Address"/>

</label>
<g:field type="email" name="emailAddress" value="${customerInstance?.emailAddress}"/>
</div>

<div ${hasErrors(bean: customerInstance, field: 'password', 'error')}>
<label for="password">
    <g:message code="customer.password.label" default="Password"/>

</label>
<g:textField name="password" maxlength="8" value="${customerInstance?.password}"/>
</div>